package main

import (
	"post-manager/appconfig"
	"post-manager/cache"
	"post-manager/models"
	"post-manager/router"
)

func main() {

	//1-初始话配置
	appconfig.Init()

	//2-连接数据库
	models.Init()

	//3-连接redis
	cache.Init()

	//4-运行项目
	r := router.Init()
	r.Run(":8000")
}
